package shopping.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import shopping.dao.IUserRoleDao;
import shopping.entity.UserRole;
import shopping.service.interfaces.IUserRoleService;

@Service("userRoleServiceImpl")
public class UserRoleServiceImpl implements IUserRoleService{

	@Resource
	private IUserRoleDao userRoleDao;
	
	@Override
	public void save(UserRole userRole) {
		userRoleDao.save(userRole);
	}

	@Override
	public void deleteById(UserRole userRole) {
		userRoleDao.deleteById(userRole);
	}

	@Override
	public void update(UserRole userRole) {
		userRoleDao.update(userRole);
	}

}
